package Demo1;

class Testdemo1 extends Test {

    public void method() {
        System.out.println(super.a);
    }
}
public class Test {
    protected int a = 100;

    public static void main(String[] args) {
        Testdemo1 testdemo1 = new Testdemo1();
        testdemo1.method();
    }
}
